package db.dto;

import java.io.Serializable;

public class ProcedurecabinetDto implements Serializable, AbstractDto
{
	/** 
	 * This attribute maps to the column NUMBER in the ProcedurecabinetDto table.
	 */
	protected int number;

	/** 
	 * This attribute maps to the column ID_DEPARTMENT in the ProcedurecabinetDto table.
	 */
	protected int idDepartment;

	/** 
	 * This attribute maps to the column NAME in the ProcedurecabinetDto table.
	 */
	protected String name;

	/**
	 * Method 'ProcedurecabinetDto'
	 * 
	 */
	public ProcedurecabinetDto()
	{
	}

    public int getId() {
        return this.number;
    }

    /**
	 * Method 'getNumber'
	 * 
	 * @return int
	 */
	public int getNumber()
	{
		return number;
	}

	/**
	 * Method 'setNumber'
	 * 
	 * @param number
	 */
	public void setNumber(int number)
	{
		this.number = number;
	}

	/**
	 * Method 'getIdDepartment'
	 * 
	 * @return int
	 */
	public int getIdDepartment()
	{
		return idDepartment;
	}

	/**
	 * Method 'setIdDepartment'
	 * 
	 * @param idDepartment
	 */
	public void setIdDepartment(int idDepartment)
	{
		this.idDepartment = idDepartment;
	}

	/**
	 * Method 'getName'
	 * 
	 * @return String
	 */
	public String getName()
	{
		return name;
	}

	/**
	 * Method 'setName'
	 * 
	 * @param name
	 */
	public void setName(String name)
	{
		this.name = name;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof ProcedurecabinetDto)) {
			return false;
		}
		
		final ProcedurecabinetDto _cast = (ProcedurecabinetDto) _other;
		if (number != _cast.number) {
			return false;
		}
		
		if (idDepartment != _cast.idDepartment) {
			return false;
		}
		
		if (name == null ? _cast.name != name : !name.equals( _cast.name )) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + number;
		_hashCode = 29 * _hashCode + idDepartment;
		if (name != null) {
			_hashCode = 29 * _hashCode + name.hashCode();
		}
		
		return _hashCode;
	}

    /**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "db.dto.ProcedurecabinetDto: " );
		ret.append( "number=" + number );
		ret.append( ", idDepartment=" + idDepartment );
		ret.append( ", name=" + name );
		return ret.toString();
	}

}
